package com.shxc.smarttrade.index.model;

import java.util.List;

/**
 * 首页 - 消息
 */

public class MessageModel {

    /**
     * data : [{"id":21,"createdAt":1509972066000,"msgInfo":"这里才是内容","status":1,"accType":0,"msgType":1,"msgTitle":"这是一个标题","msgDigest":"这只是一个摘要"},{"id":23,"createdAt":1509970974000,"msgInfo":"这里才是内容","status":1,"accType":0,"msgType":0,"msgTitle":"这是一个标题","msgDigest":"这只是一个摘要"}]
     * err_code : 0
     * err_msg : successe
     */

    private String err_code;
    private String err_msg;
    private List<DataBean> data;

    public String getErr_code() {
        return err_code;
    }

    public void setErr_code(String err_code) {
        this.err_code = err_code;
    }

    public String getErr_msg() {
        return err_msg;
    }

    public void setErr_msg(String err_msg) {
        this.err_msg = err_msg;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * id : 21
         * createdAt : 1509972066000
         * msgInfo : 这里才是内容
         * status : 1
         * accType : 0
         * msgType : 1
         * msgTitle : 这是一个标题
         * msgDigest : 这只是一个摘要
         */

        private int id; //消息id
        private long createdAt;//创建时间
        private String msgInfo; //消息内容
        private int status; //0 未读 1 已读
        private int accType;//账户id
        private int msgType; //消息类型  0 系统 1 交易
        private String msgTitle; //消息标题
        private String msgDigest; //消息摘要
        private boolean isCheck = false;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public long getCreatedAt() {
            return createdAt;
        }

        public void setCreatedAt(long createdAt) {
            this.createdAt = createdAt;
        }

        public String getMsgInfo() {
            return msgInfo;
        }

        public void setMsgInfo(String msgInfo) {
            this.msgInfo = msgInfo;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public int getAccType() {
            return accType;
        }

        public void setAccType(int accType) {
            this.accType = accType;
        }

        public int getMsgType() {
            return msgType;
        }

        public void setMsgType(int msgType) {
            this.msgType = msgType;
        }

        public String getMsgTitle() {
            return msgTitle;
        }

        public void setMsgTitle(String msgTitle) {
            this.msgTitle = msgTitle;
        }

        public String getMsgDigest() {
            return msgDigest;
        }

        public void setMsgDigest(String msgDigest) {
            this.msgDigest = msgDigest;
        }

        public boolean isCheck() {
            return isCheck;
        }

        public void setCheck(boolean check) {
            isCheck = check;
        }
    }
}
